#if UNITY_EDITOR

using UnityEditor;
using UnityEngine;
using AI.Graph.Editor;

[CustomEditor (typeof (InRangeCondition))]
public class InRangeConditionView : ConditionView {

    protected override void OnSceneGUISelected () {
        if (aiBehaviour != null) {
            Handles.color = Color.white;
            InRangeCondition condition = node as InRangeCondition;
            if (condition) {
                Handles.DrawWireDisc (aiBehaviour.transform.position, Vector3.up, condition.range);
            }
        }
    }

}
#endif